package com.itWaiLong.Mapper;

import com.itWaiLong.Dao.Comment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CommentMapper {

    /**
     * 添加评论
     * @param comment
     * @return
     */
    int add(Comment comment);

    /**
     * 查看评论
     * @return
     */
    @Select("select * from campus_programming.comment")
    List<Comment> select();
}
